<?php
/***************************************************************************
 *                               constants.php
 *                            -------------------
 *   begin                : Saturday', Feb 13', 2001
 *   copyright            : ('C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: constants.php,v 1.47.2.6 2005/10/30 15:17:14 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License', or
 *   ('at your option) any later version.
 *
 ***************************************************************************/

define ('UC_PEASANT', 0);
define ('UC_USER', 1);
define ('UC_POWER_USER', 2);
define ('UC_VIP', 3);
define ('UC_UPLOADER', 4);
define ('UC_MODERATOR', 5);
define ('UC_ADMINISTRATOR', 6);
define ('UC_SYSOP', 7);

define ('LOG_VIEW_USER', 0);
define ('LOG_VIEW_MOD', 5);
define ('LOG_VIEW_ADMIN', 6);
define ('LOG_VIEW_SYSOP', 7);

// Notify methods
define('NOTIFY_EMAIL', 0);
define('NOTIFY_IM', 1);
define('NOTIFY_BOTH', 2);

// Email Priority Settings
define('MAIL_LOW_PRIORITY', 4);
define('MAIL_NORMAL_PRIORITY', 3);
define('MAIL_HIGH_PRIORITY', 2);

// Private Messages Settings
define('PM_DELETED',0);
define('PM_INBOX',1);
define('PM_SENTBOX',-1);


// User Levels <- Do not change the values of USER or ADMIN
define('DELETED', 0);
define('ANONYMOUS', 0);

define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);


// User related
define('USER_ACTIVATION_NONE', 0);
define('USER_ACTIVATION_SELF', 1);
define('USER_ACTIVATION_ADMIN', 2);

// Group settings
define('GROUP_OPEN', 0);
define('GROUP_CLOSED', 1);
define('GROUP_HIDDEN', 2);


// Forum state
define('FORUM_UNLOCKED', 0);
define('FORUM_LOCKED', 1);


// Topic status
define('TOPIC_UNLOCKED', 0);
define('TOPIC_LOCKED', 1);
define('TOPIC_MOVED', 2);
define('TOPIC_WATCH_NOTIFIED', 1);
define('TOPIC_WATCH_UN_NOTIFIED', 0);


// Topic types
define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE', 3);


// Error codes
define('GENERAL_MESSAGE', 200);
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);


// URL PARAMETERS
define('POST_TOPIC_URL', 't');
define('POST_CAT_URL', 'c');
define('POST_FORUM_URL', 'f');
define('POST_USERS_URL', 'u');
define('POST_POST_URL', 'p');
define('POST_GROUPS_URL', 'g');

// Session parameters
define('SESSION_METHOD_COOKIE', 100);
define('SESSION_METHOD_GET', 101);

// Auth settings
define('AUTH_LIST_ALL', 0);
define('AUTH_ALL', 0);

define('AUTH_REG', 1);
define('AUTH_ACL', 2);
define('AUTH_MOD', 3);
define('AUTH_ADMIN', 5);

define('AUTH_VIEW', 1);
define('AUTH_READ', 2);
define('AUTH_POST', 3);
define('AUTH_REPLY', 4);
define('AUTH_EDIT', 5);
define('AUTH_DELETE', 6);
define('AUTH_ANNOUNCE', 7);
define('AUTH_STICKY', 8);
define('AUTH_POLLCREATE', 9);
define('AUTH_VOTE', 10);
define('AUTH_ATTACH', 11);

//privacy levels
define('PRIVACY_LEVEL_LOW', 1);
define('PRIVACY_LEVEL_NORMAL', 2);
define('PRIVACY_LEVEL_HIGH', 3);

//torrents moderation types
define('MODERATED_ALL_TORRENTS', 1);
define('MODERATED_ONLY_NON_UPLOADERS_TORRENTS', 2);
define('MODERATED_NO_ONE_TORRENTS', 3);

//comments type
define('COMMENT_TYPE_TORRENT', 1);
define('COMMENT_TYPE_REQUEST', 2);
define('COMMENT_TYPE_OFFER', 3);

// Table names
define('BANLIST_TABLE',          'banlist');
define('BOOKMARKS_TABLE',        'bookmarks');
define('CATEGORIES_TABLE',       'categories');
define('CHEATERS_TABLE',         'cheaters');
define('COMMENTS_NOTIFY_TABLE',  'checkcomm');
define('COMMENTS_TABLE',         'comments');
define('CONFIG_TABLE',           'config');
define('CONFIRM_TABLE',          'confirm');
define('COUNTRIES_TABLE',        'countries');
define('DISALLOW_TABLE',         'disallow');
define('FILES_TABLE',            'files');
define('AUTH_ACCESS_TABLE',      'forum_auth_access');
define('FORUM_CATEGORIES_TABLE', 'forum_categories');
define('FORUMS_TABLE',           'forum_forums');
define('GROUPS_TABLE',           'forum_groups');
define('POSTS_TABLE',            'forum_posts');
define('POSTS_TEXT_TABLE',       'forum_posts_text');
define('PRUNE_TABLE',            'forum_prune');
define('SEARCH_TABLE',           'forum_search_results');
define('SEARCH_WORD_TABLE',      'forum_search_wordlist');
define('SEARCH_MATCH_TABLE',     'forum_search_wordmatch');
define('TOPICS_TABLE',           'forum_topics');
define('TOPICS_WATCH_TABLE',     'forum_topics_watch');
define('USER_GROUP_TABLE',       'forum_user_group');
define('FRIENDS_TABLE',          'friends');
define('HELPDESK_TABLE',         'helpdesk');
define('INDEXRELEASES_TABLE',    'indexrelases');
define('INVITES_TABLE',          'invites');
define('PRIVATE_MESSAGES_TABLE', 'messages');
define('NEWS_TABLE',             'news');
define('OFFERS_TABLE',           'offers');
define('OFFERS_VOTES_TABLE',     'offers_votes');
define('PEERS_TABLE',            'peers');
define('RATINGS_TABLE',          'ratings');
define('RELEASE_GROUPS_TABLE',   'release_groups');
define('REPORTS_TABLE',          'reports');
define('REQUESTS_TABLE',         'requests');
define('REQUESTS_VOTES_TABLE',   'requests_votes');
define('SESSIONS_TABLE',         'sessions');
define('SESSIONS_KEYS_TABLE',    'sessions_keys');
define('SIMPATY_TABLE',          'simpaty');
define('SITELOG_TABLE',          'sitelog');
define('SMILIES_TABLE',          'smilies');
define('SNATCHED_TABLE',         'snatched');
define('SOS_TABLE',              'sos');
define('THANKS_TABLE',           'thanks');
define('THEMES_TABLE',           'themes');
define('THEMES_NAME_TABLE',      'themes_name');
define('TORRENTS_TABLE',         'torrents');
define('UPLOADAPP_TABLE',        'uploadapp');
define('USERS_TABLE',            'users');
define('WORDS_TABLE',            'words');
define('VOTE_DESC_TABLE',        'vote_desc');
define('VOTE_RESULTS_TABLE',     'vote_results');
define('VOTE_USERS_TABLE',       'vote_voters');

?>